function validate() {
	var year = document.getElementsByName("year")[0].value;
	var month = document.getElementsByName("month")[0].value - 1;
	var today = new Date();
	try {
		if (year
				&& month
				&& !isNaN(year)
				&& !isNaN(month)
				&& ((year < today.getFullYear() && year >= 2000) || (year == today
						.getFullYear() && month < today.getMonth()))) {
			return(true);
		} else {
			alert("Please choose a month in the past.");
			return(false);
		}
	} catch (e) {
		alert("Please choose a month in the past.");
		return false;
	}
}